home *** CD-ROM | disk | FTP | other *** search
/ The Original Shareware 1.1 / The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso / 16 / nyword22.zip / MANUAL < prev    next >
Text File  |  1987-05-19  |  97KB  |  2,153 lines

  1.                NYW TABLE OF CONTENTS 
  2.  
  3. I.  NOTATION AND INSTALLATION
  4.        Entering NYW...........................1-1
  5.        Exiting NYW............................1-1 
  6.        Changing Files.........................1-2
  7.        Status Line............................1-2 
  8.        Ruler Line.............................1-2
  9.        Messages and Prompts...................1-3
  10.        Error Messages.........................1-4
  11.        Help...................................1-4
  12.        Refresh................................1-4
  13.        Automatic Backup.......................1-5
  14.        Command Summary........................1-5 
  15.  
  16. II.  BASIC EDITING
  17.        Starting Up............................2-1
  18.        Format Menu............................2-1
  19.        Quick Change, Margins..................2-2
  20.        Print File.............................2-4
  21.  
  22. III.  CURSOR MOVES
  23.        Moving Across a Line...................3-1
  24.        Moving Up and Down a File..............3-2
  25.        Moving One Word at a Time..............3-2
  26.        Moving One Paragraph at a Time.........3-3
  27.        Moving to First Character of Line......3-3
  28.        Moving to Last Character of Line.......3-3
  29.        Moving to Top of Screen................3-3
  30.        Moving to Bottom of Screen.............3-3
  31.        Moving to Top of File..................3-3
  32.        Moving to Bottom of File...............3-3
  33.        Moving to Line Number..................3-3
  34.        Bookmarks..............................3-4
  35.        Command Summary........................3-6
  36.  
  37. IV.  INSERTING AND DELETING TEXT
  38.        Deleting Characters....................4-1
  39.        Deleting to End of Line................4-2
  40.        Inserting a Line.......................4-2
  41.        Deleting a Sentence....................4-2
  42.        Deleting a Line........................4-3
  43.        Undoing a Delete.......................4-3
  44. V.  WORKING WITH PARAGRAPHS
  45.        Reformatting...........................5-1
  46.        Joining Two Lines......................5-1 
  47.        Splitting a Line.......................5-3
  48.        Justification..........................5-4
  49.        Hyphenation............................5-4
  50.        Justifying a Line......................5-5
  51.        Removing Justification from a Line.....5-5
  52.  
  53. VI.  THE FORMAT MENU
  54.        Format Parameters......................6-1
  55.        Changing Formats.......................6-1
  56.        Ruler Line to Change Tabs..............6-2
  57.        Ruler Line to Change Margins...........6-2
  58.        Reformatting Changed Lines.............6-2
  59.        Create New, Copy Old Format Blocks.....6-3
  60.        Changing Just Tabs and Margins.........6-3
  61.        Left Margins...........................6-3
  62.        Changing Formats.......................6-4
  63.  
  64. VII.  MANIPULATING BLOCKS OF TEXT
  65.        Moving a Paragraph.....................7-1
  66.        Picking a Line.........................7-3
  67.        Copying Text...........................7-3
  68.        Deleting a Block.......................7-4
  69.        Other Block Operations
  70.             Write to Buffer...................7-4
  71.             Print.............................7-4
  72.             Change Case.......................7-4
  73.  
  74. VIII.  READING, WRITING AND PRINTING FILES
  75.        Reading Another File into Document.....8-1
  76.        Putting Document into Another File.....8-2
  77.        Writing a Buffer to a File.............8-2
  78.        Printing a File........................8-2
  79.  
  80. XI.  MULTI-PAGE DOCUMENTS
  81.        Pagebreaks.............................9-1
  82.        Pagination.............................9-2
  83.        Widows and Orphans.....................9-2
  84.        Checking Pagebreaks....................9-3
  85.        Working Through a Long Document........9-3
  86.        Conditional End of Page................9-4
  87.  
  88. X.  PRINTING A FILE
  89.        Printer Menu..........................10-1
  90.        Spooler Program.......................10-1
  91.        Printer Parameters....................10-2
  92.        Comment Lines.........................10-3
  93.        Translating a Character into a 
  94.             Sequence.........................10-4
  95.        Libraries of Sequences................10-5
  96.        Printing into a File..................10-5
  97.        Left/Right Page Shift.................10-6
  98.        Including Files at Print Time.........10-6
  99.  
  100. XI.  HEADERS AND FOOTERS
  101.        Creating Headers and Footers..........11-1
  102.        Deleting Headers and Footers..........11-2
  103.        Page Numbering........................11-2
  104.        Same Header/Footers All Pages.........11-3
  105.        Editing Headers and Footers...........11-3
  106.        Headers & Footers in Printer Menu
  107.             or in Format Block...............11-3
  108.        Different Headers/Footers for 
  109.             Different Parts of Document......11-4
  110.  
  111. XII.  MORE OPERATIONS ON LINES
  112.        Centering.............................12-1
  113.        Indenting Lines
  114.             Paragraph Tabs...................12-1
  115.             Indenting Lines..................12-2
  116.             Changing Paragraph Indentation...12-2
  117.             Center Text Over Columns.........12-3
  118.             Flush Right Margins..............12-3
  119.  
  120. XIII.  SPECIAL EFFECTS FOR PRINTING
  121.        List of Special Effects...............13-1
  122.        Adding and Deleting Effects 
  123.             From Existing Text...............13-1
  124.        Hard Spaces...........................13-2
  125.        Multiple Effects......................13-2
  126.        Fonts.................................13-2
  127.  
  128. XIV.  SEARCH AND SUBSTITUTE TEXT
  129.        Searching for a Word..................14-1
  130.        Ignoring Case.........................14-1
  131.        Substituting Text.....................14-2
  132.        Searching and Deleting................14-3
  133.        Regular Expressions...................14-3
  134.        Examples of Useful Patterns...........14-4
  135.  
  136. XV.  OPTIONS MENU
  137.        Paramaters of Options Menu............15-1
  138.             Paragraph Indent.................15-2
  139.             Beginning Page Number............15-2
  140.             Horizontal Scroll Speed..........15-2
  141.             Scrolling Speed..................15-2
  142.             Graphics Characters Toggle.......15-2
  143.             Tab Filler Character.............15-2
  144.             Tab Increment....................15-2
  145.             Status/Ruler Lines...............15-2
  146.             Hyphenation......................15-2
  147.             Automatic Hyphenation............15-2
  148.             Hyphenation Hot Zone.............15-2
  149.             Insert Mode......................15-2
  150.             Automatic Reform.................15-2
  151.             Save Length......................15-2
  152.             No Snow..........................15-2
  153.             Error Wait.......................15-2
  154.             Bell Sound.......................15-3
  155.             Two Spaces after Punctuati.......15-3
  156.             Cursor to Free Space.............15-3
  157.             Automatic Backup.................15-3
  158.             # Keystrokes Save................15-3
  159.             Background Color.................15-3
  160.             Foreground Color.................15-3
  161.             Put Choice.......................15-3
  162.  
  163. XVI.  WORKING WITH TABLES
  164.        Preparing Format for Tables...........16-1
  165.        Aligning Columns of Numbers...........16-1
  166.        Block Operations on Columns...........16-2
  167.        Calculations..........................16-4
  168.  
  169. XVII.  PERFORMING MATHEMATICAL CALCULATIONS
  170.        Desk Calculator.......................17-1
  171.        Performing Calculations in File.......17-1
  172.        Calculated Total Format...............17-4
  173.  
  174. XVIII.  FOOTNOTES
  175.        Creating Footnotes.....................18-1
  176.        Editing Footnotes......................18-1
  177.        Displaying All Footnotes...............18-2
  178.        Inserting a Footnote...................18-2
  179.        Deleting a Footnote....................18-2
  180.        Printing Footnotes.....................18-2
  181.  
  182. XIX.  USING MACRO DEFINITIONS
  183.        Macros.................................19-1
  184.        Defining a Macro.......................19-1
  185.        Reading Macros from a File.............19-2
  186.        Inserting a Macro into a Document......19-2
  187.        Checking Macros........................19-3
  188.        Saving Macros..........................19-3
  189.        Putting a Command Sequence
  190.             Into a Macro......................19-3
  191.             Capturing Keystrokes..............19-3
  192.             Replaying Keystrokes..............19-3
  193.        Creating Skeleton Documents............19-4
  194.  
  195. XX.  SPECIAL FEATURES
  196.        Executing a DOS Command................20-1
  197.        Table of Contents Generator............20-1
  198.        Index Generator........................20-3
  199.        Date...................................20-3
  200.        Version................................20-3
  201.  
  202. XXI.  SPLIT SCREEN EDITING
  203.        Splitting the Screen...................21-1
  204.        Jumping Between Windows................21-1
  205.        Closing a Window.......................21-1
  206.        Same File in Each Window...............21-2
  207.        Moving Text Between Windows............21-3
  208.        Full Screen Windows....................21-5
  209.  
  210. XXII.  NYW MERGE FACILITY
  211.        Format Section.........................22-2
  212.        Computation Section....................22-2
  213.        Selection Section......................22-3
  214.        Making the Database....................22-3
  215.        Merging the Data with a Letter.........22-4
  216.        Arithmetic Expressions.................22-5
  217.        Logical Expressions....................22-5
  218.        Sorting Output.........................22-6
  219.        Input Number of Field for Sort
  220.             Key #1............................22-6
  221.        Different Size Address Fields..........22-7
  222.                     NOTATION USED IN THIS MANUAL
  223.  
  224.  
  225.      Usually  a  word or phrase surrounded by angular brackets denoted
  226. some key that you must press on your keyboard. The following  are  the
  227. most commonly used symbols: 
  228.  
  229.   <CTRL>     You  must  press the CTRL key and at the same time, press
  230.              the key that follows. For example, <CTRL>) means that you
  231.              should hold down the CTRL key while pressing the 0 key. 
  232.  
  233.   <CR>       Press the ENTER key.
  234.  
  235.   <SHIFT> or <SH>  Hold down the SHIFT key while pressing another key.   
  236.  
  237.   <ALT>      Hold down the ALT key while pressing another key.
  238.  
  239.   <name>     This  is  the  name  of  a NYWord command that  is started 
  240.              by pressing the key labeled "name". 
  241.  
  242.  
  243.      On the PC's keypad, there are four  keys  with  arrows  on  them,
  244. pointing  to  the  right,  left, up and down. These will be denoted by
  245. <LEFT ARROW>, <RIGHT ARROW>, <UP ARROW> and <DOWN ARROW>. 
  246.  
  247.  
  248.                           INVOKING NYWORD
  249.  
  250.     To invoke the word processor just type
  251.  
  252.   wp [filename]
  253.  
  254.     If  no  file name is put on the command line, then NYWord will ask
  255. you  for  the  file that you want to edit. The file can reside on your
  256. current directory, or in another subdirectory on  a  different  drive.
  257. NYWord supports full DOS pathnames.
  258.  
  259.  
  260.                        DEFAULT PARAMETER FILES
  261.  
  262.     NYWord allows the user to customize his editing environment  to  a
  263. certain  degree.  In  addition  to  customizing  the way that the word
  264. processor interacts with the user, one can also customize the way that
  265. the default editing formats are set  up,  and  the  way  that  certain
  266. printing options are set up.
  267.  
  268.     On  the  distribution  disk are three important files which can be
  269. used by NYWord to override the system defaults. These files are :
  270.  
  271.   .  WPDEFAUL
  272.   .  WPFORMAT
  273.   .  WPPRMENU
  274.  
  275.      These files contain information on  the default values of certain
  276. parameters used by NYWord during an editing session. The WPDEFAUL file
  277. contains the default parameters for the  options  menu,  the  WPFORMAT
  278. file  contains  the  default  parameters  for format block #0, and the
  279. WPPRMENU file contains the default  parameters  used  by  the  printer
  280. menu. 
  281.  
  282.      Each time a user enters NYWord, a check is made of the user's DOS
  283. path  to see if any or all of the three files exist. If a file doesn't
  284. exist, then NYWord will supply its own default  values  for  the  cor-
  285. responding  parameters.  However,  if  a file exists, then NYWord will
  286. read the file to get the defaults. 
  287.  
  288.     As an example of the way NYWord searches for  these  files,  let's
  289. assume that your DOS PATH enviroment variable is :
  290.     c:\bin;c:\;d:\
  291. and  that  the  subdirectory which you are currently in is c:\wp. When
  292. NYWord starts up, it will first search the current  directory,  c:\wp,
  293. for  the  three  files.  If  the  files  are not found there, then the
  294. subdirectory c:\bin is searched. If the files  are  still  not  found,
  295. then  c:\  (the root directory on drive C) and d:\ (the root directory
  296. on drive D) will be searched. If the files were not found, then NYWord
  297. uses  its  own  values  for  the  editing,  formatting,  and  printing
  298. parameters.
  299.  
  300.      You might want to create a personalized copy of each of the three
  301. files for certain subdirectories.
  302.  
  303.      Since  the  three files contain ASCII text, you can use NYWord to
  304. edit the contents of a file. Each file contains directions on  how  to
  305. change  various  default  values.  IF YOU EDIT THE DEFAULT FILES USING
  306. NYWORD, MAKE SURE THAT YOU SAVE THE FILE IN ASCII.
  307.  
  308.                           BASICS OF NYWORD
  309.  
  310.  
  311. STARTING NYWORD 
  312.  
  313.     To start the word processor, just type "wp"  followed  by  one  or
  314. more blanks, followed by the name of the file you want to edit. If you
  315. don't  provide  a  file name on the command line, then NYWord will ask
  316. you for the file that you want to edit. 
  317.  
  318.     The  file  name  can be any valid DOS file name. The first part of
  319. the file name must contain no more than 8 characters. You can have  an
  320. optional  extension  of  no  more  than three characters. See your DOS
  321. manual  for  more  details  on  file  names.  NYWord supports full DOS
  322. pathnames, so you can edit files which reside on different drives  and
  323. on different subdirectories.
  324.  
  325.     Some sample file names are: 
  326.  
  327.   foo, M123, compile.c, read_ME, \autoexec.bat, d:\work\bills\cust.inv
  328.  
  329.     When  you  start  NYWord  on a new file, you will just see a blank
  330. screen and a status line on the  bottom  of  the  screen.  Just  start
  331. typing!!! No menus are used here!!! However, if you are editing an old
  332. file, you  will  see  the  file displayed on your screen from the beg-
  333. inning, and the status line at the bottom. Again, just  start  editing
  334. the file! 
  335.  
  336.  
  337. THE MENU SYSTEM
  338.  
  339.     To  aid  you in using NYWord, we have incorporated a pulldown menu
  340. system. To bring up the menu, press  <ALT>  M.  A  menu  bar  will  be
  341. displayed  on  the  top  line  of the screen. You can use the left and
  342. right arrow keys to move the highlight across the menu. If there is  a
  343. submenu  associated  with  a  menu  item,  the  submenu  will  also be
  344. displayed. You can use the up and down arrow keys to move through  the
  345. submenu. When the highlight is over a command that you want to invoke,
  346. press  <CR>.  If  you  want to get out of the menu without executing a
  347. command, press the <ESC> key.
  348.  
  349.  
  350. LEAVING NYWORD 
  351.  
  352.     To exit from the word processor, type <CTRL>D.  You  will  see  a
  353. message on the bottom of the screen asking you 
  354.  
  355.   File was modified - save it? ( y(yes)/ n(no)/ a(ascii) )
  356.  
  357.     To  save the file in NYWord's special internal format, hit the 'y'
  358. key. To save the file in ASCII format, press the 'a' key.  If  you  do
  359. not want to save the file, press 'n'. If you respond 'no', then NYWord
  360. will  ask  you  if  you  are sure that you don't want to save it. This
  361. little safety measure helps prevent you from accidentally losing  your
  362. work.
  363.  
  364.     If  you  typed anything else, you will get a message on the bottom
  365. telling you that the write was aborted after you type any key, you are
  366. put back into NYWord at the place you were before. This is a safeguard
  367. in case you accidentally typed <CTRL>D. 
  368.  
  369.     When you save a file by responding with a 'y', then  the  file  is
  370. saved in NYWord's special internal format. The saved file contains not
  371. only the text, but the format information, and any macros or footnotes
  372. you  defined.  The  ASCII option, on the other hand, just contains the
  373. text of the document - no format information is saved.
  374.  
  375.  
  376. EDITING A NEW FILE WITHOUT LEAVING NYWORD
  377.  
  378.      You  can  edit a totally new file without leaving and starting up
  379. NYWord  again.  To  do this, type <ESC><CTRL>D. NYWord will ask you if
  380. you want to save the old file, just like  it  does  when  you  exit  a
  381. NYWord  editing  session. After you type the response, NYWord asks you
  382. for the name of the new file to edit. Type it in, followed by a  <CR>,
  383. and  after  a  few  seconds,  you  will see the new file appear on the
  384. screen. 
  385.  
  386.      The contents of the ten scrap buffers that you used  in  the  old
  387. file remain unchanged when you enter the new file. This means that you
  388. can  pick or copy some text from the old file into a buffer, enter the
  389. new file, and deposit the contents of the buffer in the new file. (See
  390. the chapter on BLOCK COMMANDS).
  391.  
  392.  
  393. THE STATUS LINE 
  394.  
  395.      On the bottom of your screen, there is a line which tells you in-
  396. formation  about  the  file  you  are editing. This line is called the
  397. "status line", and it contains information  about  the  file  you  are
  398. editing. 
  399.  
  400.      There are two kinds of status lines; the "positional" status line
  401. and the "ruler" status line. The positional line gives you information
  402. about  where you are in a file, and the ruler line shows you where the
  403. tabs and margins are set. 
  404.  
  405.      Here is an example of a positional status line: 
  406.  
  407.   col:3  line 25 of 49  mode:0 * fmt:0  file:letter 
  408.  
  409.     'Col' tells you what column the cursor is under. The column starts
  410. at 1, and can extend up to 32,000. The next piece of information tells
  411. you what line number of the file the cursor is on, and how many  total
  412. lines  the  file  contains.  The  mode  tells  you  whether you are in
  413. overstrike mode (O) or insert mode (I). If the file was modified since
  414. the editing session began, then there will be an asterisk between  the
  415. mode  information  and the format information. The format-block number
  416. of the current line (see chapter on formats). The file is the name  of
  417. the file you are currently editing. 
  418.   
  419.      When you start editing a file, the positional status line will be
  420. shown. You can change to the ruler line if you desire.  The  ruler  is
  421. marked  off  by  column. Every five columns is marked with a plus sign
  422. '+'. Also shown on this ruler are your  tab  stops,  left  margin  and
  423. right  margin.  As  you  move  the  cursor, a "ghost cursor" will move
  424. simultaneously on the ruler to show you which column you  are  at.
  425.  
  426.     To change the status line from the regular one to the ruler, press
  427. the <STATUS LINE> key. This key is the <ALT> T key. To get  the  posi-
  428. tional status line back, hit the <STATUS LINE> key again.   
  429.  
  430.  
  431.  
  432.      A typical ruler line looks like this: 
  433.  
  434.  
  435. L---+---T1----+-T--2----T----3--T-+----4T---+---T5----+-T--6----R----7--T-+ 
  436.  
  437.  
  438.      The letter 'L' shows you where the left margin is; in  this  par-
  439. ticular  format,  the  left  margin is set at column 1. The letter 'R'
  440. shows you where the right margin is set; here it's set to  column  65.
  441. Each  letter  'T' marks a tab stop; you can see that a tab stop occurs
  442. every 8 columns. 
  443.  
  444.  
  445. MESSAGES AND PROMPTS 
  446.  
  447.     At  various times through your editing session, the word processor
  448. might give you messages on the status line. After you respond  to  the
  449. message, the status line will be re-displayed for you. 
  450.  
  451.     Sometimes  you  might  press  a key by mistake, or decide that you
  452. really don't want to execute a command. If you  are  prompted  on  the
  453. status  line  for some information, pressing the <ESC> or <CTRL>D keys
  454. will usually return you to the document, and the command will be  dis-
  455. regarded. 
  456.  
  457.     You  can  perform  very  simple  editing  on  the status line. The
  458. following keys can be used :
  459.  
  460.     <HOME> moves to the first character of your response.
  461.     <END> moves to the last character of your response.
  462.     <BACKSPACE> deletes the character to the left of the cursor.
  463.     <DEL> deletes the character under the cursor.
  464.     <INS> toggles insert mode.
  465.     <LEFT> moves the cursor left one character.
  466.     <RIGHT> moves the cursor right one character.
  467.  
  468.  
  469. ERROR MESSAGES 
  470.  
  471.     Occasionally, you might type a bad command to the word  processor.
  472. If  so, you will hear a bell sound, and a message telling you your er-
  473. ror will be shown on the bottom line. Typing any key will  return  you
  474. to your editing session. See the section on error messages to find out
  475. more on what these error messages mean and how to correct them. 
  476.  
  477.     In  the  options  menu,  there  is the 'er' option which tells the
  478. word  processor  whether  or  not  to  wait  for  a  keystroke  before
  479. continuing. If you do not want to press a key to acknowledge an error,
  480. then turn this option off. (See the chapter on Options.)
  481.  
  482. EXAMPLE 
  483.  
  484.     Press  the  <ESC>  key twice. You will hear the bell sound, and on
  485. the status line will be the message: 
  486.  
  487.   illegal instruction -- type anything to continue 
  488.  
  489.     Press any key at all. The status line will be re-displayed and you
  490. can now continue with your editing. NYWord forces you  to  acknowledge
  491. the error by pressing one key after the error message is shown. 
  492.  
  493.  
  494. HELP 
  495.  
  496.      Type <HELP> to invoke the help function. Then  type  any  command
  497. and  the  help file for that command will appear on the screen. If you
  498. didn't really want to see a help file, type <CTRL>D and  your  editing
  499. session will resume. The <HELP> command is the <ALT> H key.
  500.  
  501.  
  502. REFRESH 
  503.  
  504.  
  505.     Sometimes the screen will get a little messed up because of a num-
  506. ber  of  reasons. The <REFRESH> command erases your screen and redraws
  507. it, starting at the line which appears at the top of your screen. This
  508. command will in no way affect the text your file. Use this command  if
  509. your screen has unwanted characters on it. 
  510.  
  511.     The <REFRESH> command is the <ALT> R key.
  512.  
  513.  
  514. AUTOMATIC BACKUP (or One Million sighs of relief)
  515.  
  516.      For an extra measure of protection, an automatic  backup  feature
  517. has  been  integrated in NYWord. This feature makes a copy of the cur-
  518. rent state of the document that you are editing every few  keystrokes.
  519. That way, you may never need to use the restore feature. 
  520.  
  521.      In the options menu, there is now a line which reads:
  522.  
  523.           auto backup of file (ab)     n
  524.  
  525.      If you want auto-backup to be turned on, type "ab y". If you look
  526. at the line which tells you the number of keystrokes for save, you can
  527. see the number of keystrokes NYWord will wait for before it saves your
  528. document out to a ".BK2" file. If you have auto-backup  enabled,  then
  529. after  this  amount  of  keystrokes, NYWord will write out the current
  530. version of the file to  a  file  called  "file.bk2".  The  "file"  in
  531. "file.bk2"  is  the  name of the file which you are currently editing.
  532. This is not the same idea as the "file.bak" file that  NYWord  creates
  533. when  you save a document. The "file.bak" file is the "old" version of
  534. the  file  that  existed  before  you  changed  it  with  NYWord.  The
  535. "file.bk2"  is  changed  continuously  during the editing session, and
  536. contains the version of the file as you see it on your screen  at  the
  537. moment. 
  538.  
  539.      If you always want auto-backup to be on, change it's value in the
  540. "WPDEFAUL" file.
  541.  
  542.  
  543.  
  544.                                SUMMARY
  545.  
  546. wp filename 
  547.  
  548.      The command you type to enter the NYWord word processor. The file
  549. can  be  a  brand new file, or can be an old one. The file name can be
  550. any DOS file name, including a drive letter and a path.
  551.  
  552. <CTRL> D 
  553.  
  554.     Exits  the  word  processor. You are given the option to save your
  555. file. 
  556.  
  557. <ESC> <CTRL> D
  558.  
  559.     Like the <CTRL> D command, but NYWord will  ask  you  for  another
  560. file to edit.
  561.  
  562. <HELP>   (ALT H)
  563.  
  564.     Prints  a  help file on the screen. Just type the command that you
  565. want help for. 
  566.  
  567. <STATUS LINE>   (ALT T)
  568.  
  569.     Toggles the status line between the "positional" status  line  and
  570. the "ruler" line. 
  571.  
  572. <REFRESH>   (ALT R)
  573.  
  574.     Redraws the screen. 
  575.                      BASIC EDITING INSTRUCTIONS
  576.  
  577.  
  578.     The  first thing that we are going to try with NYWord is writing a
  579. simple letter to another company. When you start your PC  system,  DOS
  580. will prompt you for commands. From DOS, type 
  581.  
  582. ==>     wp letter
  583.  
  584. followed  by  a  <CR>.  After a few seconds, you will see a completely
  585. blank screen, except for the status line at  the  bottom.  The  status
  586. line looks like this: 
  587.  
  588.   col:1  line 1 of 1   mode:O    fmt:0   file:letter
  589.  
  590.      This  status  line  tells  you  that  the file you are editing in
  591. called letter, and the cursor is positioned at column 1 of the screen.
  592. The mode tells you whether you are in "overstrike"  or  "insert"  mode
  593. here,  you  are  in  overstrike mode since you see the letter 'O'. The
  594. format block associated with the first line is 0. The cursor is  posi-
  595. tioned on line 1 and the last line of the document is line 1. 
  596.  
  597.      The default margins of every new document are set at column 1 and
  598. column  75  (You  can  change  this  default  setting  by altering the
  599. WPFORMAT file). Now, we want to make the margins of the letter  3  and
  600. 70. To do this: 
  601.  
  602. ==>     press the <FORMAT MENU> command (the <ALT> F key)
  603.  
  604.      On the screen, you will see a menu of commands that you can do.  
  605.   _________________________________________________
  606.   |       Type n to create a new format           |
  607.   |                                               |
  608.   |       Type o to copy an old format            |
  609.   |                                               |
  610.   |       Type c to change an old format          |
  611.   |                                               |
  612.   |       Type <CTRL> to return to document       |
  613.   |_______________________________________________|
  614.  
  615.      Since  we  want  to  change  an existing format, press the letter
  616. 'c'. (No <CR> required here.) You will  now  see  a  menu  of  various
  617. formatting characteristics that your letter has.  Every  new  file  is
  618. "born"   with   format   block   #0.  A  format  block  describes  the
  619. formatting attributes of your file, such as where the margins and  tab
  620. stops are, the line spacing, wordwrap and justification switches, etc. 
  621.  
  622.      The message on the bottom of the format block says:
  623.  
  624. Type y to choose, n for next, ^D to return to document, <n><CR> for format
  625.      ---- LAST FORMAT is 0
  626.  
  627.      We can type "Y" if we want to  change  the  format  block  that's
  628. shown  on  the  screen.  You can also type "N" to view the next format
  629. block (if there is one), or type a number followed by a <CR>  to  view
  630. that  numbered  format  block. Typing <CRTL>D will get you back to the
  631. document. 
  632.  
  633. ==>     press 'y'
  634.  
  635.      After we typed 'y', the cursor moved to the  first  item  on  the
  636. menu, which is the setting for the left margin. 
  637.  
  638.      Now  that  the cursor is positioned by the left margin line, type
  639. '3' followed by a <CR> 
  640.  
  641.      You will see the value of the left format change from 1 to 3.  If
  642. you  look  at  the ruler line near the bottom of the menu, you'll also
  643. see the letter L over position 3 of the ruler. 
  644.  
  645. ==>     press <DOWN ARROW>
  646.  
  647.      You'll see the cursor move to the right margin line.  
  648.  
  649. ==>     type "70" followed by a <CR>
  650.  
  651.      You'll  see  the  value  change from 80 to 70. On the ruler, an R
  652. will appear at position 70. 
  653.  
  654. ==>     press <CTRL>D to return to your document
  655.  
  656.      Another way to change the margins is to press  the  <DOWN  ARROW>
  657. key  until  the cursor is positioned on the ruler line. If you use the
  658. <LEFT ARROW> key, you can position the cursor at position  3.  If  you
  659. now  type  "L", you'll see the L move from position 1 to 3, and you'll
  660. also see the value of the left margin on line 2 change from 1 to 3. Do
  661. the same thing for the right margin. Use the <UP  ARROW>  key  to  get
  662. yourself out of the ruler line. 
  663.  
  664.      A  little later in this manual, you will learn how to fully util-
  665. ize the format blocks to modify the appearance of your document. There
  666. is a much easier way to change just the tabs and margins  without  af-
  667. fecting  the  rest of the format block. This method involves using the
  668. <CHANGE  MARGINS> command (the <ALT> Y key). This will also be covered
  669. later in the manual. 
  670.  
  671.      Now  that the margins are properly set, you'll see the cursor po-
  672. sitioned at column 3 of the screen.  Now  type  the  following  letter
  673. exactly  as follows (remember to hit the carriage return key where you
  674. see the symbol <CR>): 
  675.  
  676.  
  677. _____________________________________________________________________________
  678. |  Prof. Ralph Fraser<CR>                                                   |
  679. |  International Institute for Communications<CR>                           |
  680. |  123 Broadway<CR>                                                         |
  681. |  New York, N.Y.  10002<CR>                                                |
  682. |  <CR>                                                                     |
  683. |  <CR>                                                                     |
  684. |  Dear Professor Fraser<CR>                                                |
  685. |  <CR>                                                                     |
  686. |  <CR>                                                                     |
  687. |  Thank you for ordering WPSYNC communication program for the Universe.    |
  688. |  Unfortunately, while we would like to process your order immediately,    |
  689. |  we are unable to do so as payment was not included.  <CR>                |
  690. |  <CR>                                                                     |
  691. |  The following is the total amount due:<CR>                               |
  692. |  <CR>                                                                     |
  693. |            WPSYNC Communication Program  $250.  00<CR>                    |
  694. |            Shipping Charges                20.  00<CR>                    |
  695. |            Total amount of order         $270.  00<CR>                    |
  696. |  <CR>                                                                     |
  697. |  <CR>                                                                     |
  698. |  Thank you very much for your cooperation.  <CR>                          |
  699. |  <CR>                                                                     |
  700. |  <CR>                                                                     |
  701. |  <CR>                                                                     |
  702. |                                     Sincerely yours<CR>                   |
  703. |  <CR>                                                                     |
  704. |  <CR>                                                                     |
  705. |  <CR>                                                                     |
  706. |                                     Alice<CR>                             |
  707. |___________________________________________________________________________|
  708.  
  709.  
  710.  
  711.      If you make a typing mistake, you can either hit the  <BACKSPACE>
  712. key  or  the <LEFT ARROW> key to back the cursor up one position, then
  713. typing the correct characters. 
  714.  
  715.      You may have noticed some nice features as you were  typing.  The
  716. most  noticeable  thing  was  that you did not have to type a carriage
  717. return as you were nearing the end of a line. The word processor  took
  718. the  word  that  went  over the right margin and placed it on the next
  719. line. This feature is called WORDWRAP. 
  720.  
  721.      You also have some mistakes in this letter that you want to  cor-
  722. rect,  and some phrases that you might want to add. We will do this in
  723. the next chapter. 
  724.  
  725.  
  726. PRINTING YOUR FILE
  727.  
  728.      When you want to print the file that you are currently editing,
  729.  
  730. ==>     Press the <WRITE> command  (the <F10> key)
  731.  
  732.      A message will appear on the status line which says:
  733.  
  734.   file to write to: (CR to print)
  735.  
  736. ==>     Press <CR> to print the file.
  737.  
  738.     A table of printer options will appear on  the  screen.  For  now,
  739. just  press  <CTRL>  D  to print the file. The printer options will be
  740. discussed in the chapter on printing.
  741.                           MOVING THE CURSOR
  742.  
  743.      In  the  last chapter, we created a file using NYWord called "letter".
  744. Type "wp letter" to edit this file once again. 
  745.  
  746.      We will not learn how to move the cursor in a number  of  ways.  Since
  747. the left margin of the letter was set at 3, the cursor should be positioned
  748. at column 3 of the first line. 
  749.  
  750. MOVING ACROSS A LINE
  751.  
  752.      The  arrow  keys  on  your  keyboard  will be the basis for the cursor
  753. movements. Press the <RIGHT ARROW> key a few times, and you  will  see  the
  754. cursor  move rightwards one character at a time. Continue pressing this un-
  755. til you reach the end of the line. Now press the <RIGHT ARROW>  key  a  few
  756. more times. 
  757.  
  758.     When  you  reach  the end of a line and you press <RIGHT ARROW>, one of
  759. two actions might occur. Either the cursor will move past the  end  of  the
  760. line  into  "free space", or the cursor will move to the first character of
  761. the next line (if there is a next line). You can control this  action  with
  762. the  "fs" option on the options menu. If the "fs" variable is 'Y', then the
  763. cursor can be moved into free space. If the "fs" variable is 'N', then  the
  764. cursor  cannot be moved into free space, and will move to the first charac-
  765. ter of the next line. The choice is yours to make. 
  766.  
  767.     Try doing the same thing with the <LEFT ARROW> key.  Notice  that  when
  768. you  try  to  go past the beginning of a line, the cursor moves to the last
  769. character of the previous line (if there is one). 
  770.  
  771.     The screen on a PC is usually only 80 characters wide. But  your  docu-
  772. ment  can  have  up  to  16,000 columns. If your document is longer than 80
  773. columns and the cursor reaches the right border of the  screen,  a  process
  774. called  "horizontal scrolling" occurs. The document will scroll horizontal-
  775. ly, so now instead of seeing column 1 on the left of the screen and  column
  776. 80  on the right of the screen, you will see column 41 on the left side and
  777. column 121 on the right. 
  778.  
  779.     If you now move the cursor past the left side of the screen, the  docu-
  780. ment  will  scroll  horizontally rightwards. This will put column 1 back on
  781. the left side and column 80 on the  right  side.  Each  time  a  horizontal
  782. scroll occurs, the document scrolls horizontally by 40 columns, but you can
  783. change  that  in  the options menu. See the chapter on the options menu for
  784. the "horizontal scroll" option. 
  785.  
  786.   ________________________                           __________________________
  787.   |                      |                           |                        |
  788.   | 90abcdefghijklmnopqr |                           |  klmnopqrstuvwxyz....  |
  789.   |                      |                           |                        |
  790.   | col              col |        horizontal         |  col              col  |
  791.   |  1                80 |          scroll           |  41               121  |
  792.   |                      |                           |                        |
  793.   |______________________|                           |________________________|
  794.  
  795.  
  796. MOVING UP AND DOWN THE FILE
  797.  
  798.     Press the <DOWN ARROW> a few times. Each time you press this, the  cur-
  799. sor  moves  down  one  line.  The  cursor  tries to stay at the same column
  800. position, but if there is no text in that position, it moves  to  the  last
  801. character  of the line. When you reach the bottom of the screen and go down
  802. a line, you see that the screen scrolls upwards by one line. If you try  to
  803. move past the last line, the bell sounds and the cursor stays where it was.
  804. So you see that you cannot move the cursor to where there's no text. 
  805.  
  806.     Try  the  same  thing  with  the <UP ARROW> key and watch how it works.
  807. Watch what happens when you get to the top of the screen. 
  808.  
  809.     The "fs" variable mentioned above also applies to cursor movements with
  810. the <UP ARROW> and <DOWN ARROW> keys. If the "fs" variable is 'Y', then you
  811. can move the cursor into "free space". 
  812.  
  813.  
  814. MOVING ONE WORD AT A TIME
  815.  
  816.     Now we are going to try to move a word at a time instead of a character
  817. at a time. 
  818.  
  819.   Press <CTRL> <RIGHT ARROW>
  820.  
  821.     This command moves you to the beginning of the next word, even if  that
  822. word starts on another line. 
  823.  
  824.   Press <CTRL> <LEFT ARROW>
  825.  
  826.      This  command  will  move you backwards one word at a time. Try this a
  827. few times to get the hang of it. 
  828.  
  829.  
  830. MOVING ONE PARAGRAPH AT A TIME
  831.  
  832.     Instead of moving a line at a time, let's move a paragraph at a time. A
  833. paragraph is defined as text that follows a  blank  line  or  a  line  that
  834. beings with a paragraph tab. 
  835.  
  836.      Go the first line of the file. 
  837.  
  838.   Press  <CTRL> <PGDN>
  839.  
  840.      Do  this  a  few  times.  Watch the cursor jump to the next paragraph.
  841. Notice that when the next paragraph  is  not  on  the  screen,  the  screen
  842. "redraws" to place the beginning of the next paragraph a few lines from the
  843. top. If there are no more paragraphs, the cursor sits where it was. Try the
  844. same thing with <CTRL> <PGUP> and watch the cursor jump up a paragraph at a
  845. time. 
  846.  
  847.  
  848. MOVING TO THE FIRST AND LAST CHARACTER OF A LINE
  849.  
  850.     There are two keys which enable you to jump to the beginning or the end
  851. of  a line. The <HOME> key will position you at the left margin of the line
  852. where the cursor is. The <END> key will position you just  after  the  last
  853. character of the line. Try this a few times with different lines. 
  854.  
  855.  
  856. MOVING TO THE TOP AND BOTTOM OF THE SCREEN
  857.  
  858.     You can position yourself at the first character of the top line on the
  859. screen  by  pressing  the  <CTRL> <HOME> key. Likewise, you can move to the
  860. first character of the bottom line you see on the screen  by  pressing  the
  861. <CTRL>  <END>  key. If the last line of the file is above the bottom of the
  862. screen, the cursor will move to the line. 
  863.  
  864.  
  865. MOVING TO THE TOP AND BOTTOM OF THE FILE
  866.  
  867.     Moving to the first line of your file and to the last character of your
  868. file are extremely simple. The <GOTO TOP> key is the <SHIFT> <HOME> key. To
  869. move to the end of your file, use the <GOTO EOF> command. This  command  is
  870. done by pressing the <SHIFT> <END> key. 
  871.  
  872.  
  873. MOVING TO A LINE NUMBER
  874.  
  875.      There  is  also  a way of moving to a specific line number or moving a
  876. specified number of lines up or down from where you are now. 
  877.  
  878.   Press the <GOTO LINE> key  (the <ALT> G key)
  879.  
  880.      You will see a message on the bottom of the screen which says 
  881.  
  882.   line number"
  883.  
  884.      Type in a number followed by a <CR> and you will see the  cursor  jump
  885. to that line number. If no such line number exists (for instance, you typed
  886. 0  or  100 when there were only 90 lines in the file), the system will tell
  887. you that you typed a bad line number. Try this to go to line 10. A  way  of
  888. going  to  the  first line in your file, no matter where you are positioned
  889. now, is to press <GOTO LINE> and type "1". 
  890.  
  891.      The <GOTO LINE> command is more powerful than this. If  you  type  "+"
  892. followed  by a number, the cursor will move DOWN that many lines. Since you
  893. are now at line 10, press <GOTO LINE> and then type "+5". You will see  the
  894. cursor  jump  down  to line 15 of your file. Now press <GOTO LINE> and type
  895. "-7" you'll see the cursor jump to line 8 of the file, which is 7 lines  UP
  896. from line 15. 
  897.  
  898.      There is a short way of telling the cursor to jump to the last line of
  899. the file. 
  900.  
  901.   Press <GOTO  LINE>
  902.  
  903.   line number: $
  904.  
  905.      "$"  is  a  way  of saying "the last line in the file". You'll see the
  906. cursor jump to the last line, which is the line after "Alice". Try pressing
  907. <GOTO LINE> and typing "$-10". You'll see the cursor  goto  the  11th  line
  908. from the last line (or last line minus 10 lines). 
  909.  
  910.      NOTE:  A  way  of going to the last line of the file is to press <NEXT
  911. PAGE> if there are no pagebreaks after the current line. Likewise, pressing
  912. <PREV PAGE> moves to the first line of  the  file  only  if  there  are  no
  913. pagebreaks  before  the  current  line.  This  will be discussed further in
  914. another chapter. 
  915.  
  916.  
  917. BOOKMARKS
  918.  
  919.      You can place your thumb at a certain position and move there directly
  920. whenever you want. You have 26 different "bookmarks", labelled 'a'  through
  921. 'z'. To place a bookmark at the exact place where the cursor is, 
  922.  
  923.   press the <BOOKMARK> key (the <ALT> B key)
  924.  
  925.      You  will  see  a message come up on the screen asking you to name the
  926. bookmark. 
  927.  
  928.   name the bookmark ('a' - 'z'):
  929.  
  930.      Just type in one lower-case letter. In this case, just press  the  'a'
  931. key.  The status line will re-appear and you can continue to edit the file.
  932. To go to that bookmarked position from wherever you are in  your  document,
  933. press  the <GOTO LINE> command. Instead of typing the line number, type the
  934. bookmark's name and press <CR>. If there is a line  corresponding  to  that
  935. bookmark,  you  will jump to it immediately, or else a message will come up
  936. telling you that there was no bookmark by that name. 
  937.  
  938.      As an example, we will go to the line and column of the bookmark named
  939. 'a'. 
  940.  
  941.   Press the <GOTO LINE> key  (<ALT> G)
  942.  
  943.   line number: a
  944.  
  945.      The cursor will now move to the line that we marked,  and  the  column
  946. where the bookmark was placed. 
  947.  
  948.      If  you  delete  a  line that had a bookmark on it, then that bookmark
  949. will no longer exist. If you name a bookmark with a letter  that  was  used
  950. already,  that name will correspond to the new position. You cannot use the
  951. bookmark to go to that old position. 
  952.  
  953.  
  954. OTHER CURSOR COMMANDS
  955.  
  956.      There are other commands which let  you  scroll  continuously  through
  957. your  document,  forwards  and backwards. There are also commands that will
  958. move you a page at a time, or to a specific page. Since these commands  are
  959. useful  only  when you have a document that is more than a page long, these
  960. commands will be discussed in the chapter on multi-page documents. 
  961.  
  962.      There are commands which let you search for a word and move the cursor
  963. to the next or previous line which contains that word. These  commands  are
  964. covered in the chapter on searching and substituting text. 
  965.  
  966.  
  967.                       SUMMARY OF CURSOR COMMANDS
  968.  
  969.  
  970.      <UP ARROW>                  Move up one line
  971.      <DOWN ARROW>                Move down one line
  972.      <CTRL> <PGUP>               Move up one paragraph
  973.      <CTRL> <PGDN>               Move down one paragraph
  974.  
  975.      <LEFT ARROW>                Move left one character
  976.      <RIGHT ARROW>               Move right one character
  977.      <CTRL> <LEFT ARROW>         Move back one word
  978.      <CTRL> <RIGHT ARROW>        Move forward one word
  979.  
  980.      <CTRL> <HOME>               Move to the top of the screen
  981.      <CTRL> <END>                Move to the bottom of the screen
  982.                                  or to the last line of the file,
  983.                                  whichever comes first
  984.  
  985.      <HOME>                      Move to the first character of a line
  986.      <END>                       Move just after last character of a line
  987.  
  988.      <SHIFT> <HOME>              Move to the top of the file
  989.      <SHIFT> <END>               Move to the end of the file
  990.  
  991.      <GOTO LINE>                 Move to a specific line number
  992.                                  responses are
  993.                                    n             move to line number n
  994.                                    a-z           move to bookmark named
  995.                                    $             move to last line
  996.                                    n[+-]m        move m lines after or
  997.                                                  before line n
  998.                                    [+-]m         move m lines after or
  999.                                                  before current position
  1000.  
  1001.      <BOOKMARK>                  Mark the current line and the column
  1002.                                  where the cursor is.  
  1003.                      INSERTING & DELETING TEXT
  1004.  
  1005.  
  1006.      In  the  previous  chapters,  we learned how to type in a letter, 
  1007. move the cursor around the text, and change the margins. This  chapter
  1008. will  show you how to add and delete text from your file. We are going
  1009. to edit the file called "letter" that we've been using in the past two
  1010. chapters, so if you are not currently editing that file, type 
  1011.  
  1012. ==>     wp letter
  1013.  
  1014.      Use the cursor movement commands to position yourself  under  the
  1015. "F"  in the word "Fraser". Let's say that you want to change this word
  1016. to  "Hanson".  When  you  type the word "Hanson", you will see the new
  1017. characters replacing the old characters. This  is  called  "overstrike
  1018. mode",  which means that any characters you type will replace whatever
  1019. characters were at that position before. The word processor  puts  you
  1020. in  overstrike  mode  automatically.  (We will learn how to change the
  1021. default mode to "insert mode" later. ) 
  1022.  
  1023.   before - Dear Prof. Fraser,
  1024.                       -
  1025.   type                Hanson,
  1026.  
  1027.   after  - Dear Prof. Hanson,
  1028.  
  1029.      Now  use  the <PREV WORD> command to position yourself at the "P"
  1030. in "Prof, Hanson,". We want to change the word "Prof." to "Mr.".
  1031.  
  1032. ==>     Press the <DEL WORD> command (the <SHIFT> <DEL> key)
  1033.  
  1034.     You will see the word "Prof." disappear. The sentence looks like 
  1035.  
  1036.   Dear Hanson,
  1037.        -
  1038.  
  1039.      Now press the <INS> key and type "Mr.". You will see everthing to
  1040. the right of the cursor slide over to the right as you're typing. This
  1041. is  called  "insert mode", because each character is being inserted at
  1042. the cursor position. When you are in insert mode, the  old  characters
  1043. are  not being destroyed as in overstrike mode, but merely pushed over
  1044. to make room for the new characters. Typing any other command will get
  1045. you out of the insert mode, so you don't need to worry about having  a
  1046. command inserted as text! 
  1047.  
  1048.     The  <INS>  key will toggle you between insert mode and overstrike
  1049. mode. You can tell which mode you are in by looking at the status line
  1050. at the bottom of the screen. Look for the  word  "mode:".  The  letter
  1051. next to it will be an 'O' if you are in overstrike mode, and an 'I' if
  1052. you are in insert mode. 
  1053.  
  1054.      Exercise - Change all occurences of "WPSYNC" to  "WPSync"  in the
  1055. letter. 
  1056.  
  1057.  
  1058. DELETING CHARACTERS
  1059.  
  1060.      There  are  two  methods of removing an individual character from
  1061. the file. If you press the <DEL> key, you will see the character  over
  1062. the  cursor disappear and the rest of the characters slide over to the
  1063. left to fill the vacant place. You can also delete the character  just
  1064. to  the  left  of  the cursor by pressing the <BACKSPACE> key. This is
  1065. useful if you just typed a wrong character. Pressing <BACKSPACE>  will
  1066. erase that bad character. 
  1067.  
  1068.      Exercise  -  Go  the  line  that says "The following is the total
  1069. amount due:" and position the cursor over the colon. Press  <INS>  and
  1070. type "next wo". So far, the line looks like: 
  1071.  
  1072.   The following is the total amount due next wo:
  1073.                                                _
  1074.      Now  press  <DELETE>  and  you  will  see the 'o' disappear. Type
  1075. "eek". Now position yourself back a few words  to  the  word  "total".
  1076. Press <DEL CHAR> six times to remove that word (you know that the <DEL
  1077. WORD> command would do the same thing). 
  1078.  
  1079.      Now, the line looks like this:
  1080.  
  1081.   The following is the amount due next week:
  1082.                        -
  1083.  
  1084.  
  1085. DELETING TO THE END OF THE LINE
  1086.  
  1087.     The  <DELEOL>  command  (the  <SHIFT>  Numeric  keypad 5 key) will
  1088. delete all characters from  the  cursor  position  until  the  end  of
  1089. the line.
  1090.  
  1091.     For example, if the current line looks like this :
  1092.  
  1093.   The following is the amount due next week:
  1094.                        -
  1095.  
  1096.      After pressing <DELEOL>, the line looks like this :
  1097.  
  1098.   The following is the  
  1099.                        -
  1100.  
  1101.  
  1102.  
  1103. INSERTING A LINE
  1104.  
  1105.      Go  to  the  line  which  says  "Thank  you  very  much  for your
  1106. cooperation" and position the cursor at the beginning  of  that  line.
  1107. Now  press  the  <INS LINE> command (the <F2> key). You'll see a blank
  1108. line appear where the cursor is, and the rest of the text shifted down
  1109. one line. 
  1110.  
  1111.    ___________________________________________________________
  1112.    |            Total amount of order             $270.  00  |
  1113.    |                                                         |
  1114.    |                                                         |
  1115.    |  -                                                      |
  1116.    |  Thank you very much for your cooperation.              |
  1117.    |_________________________________________________________|
  1118.  
  1119.  
  1120.      The <INS LINE> command  inserts  a  blank  line  for  before  the
  1121. current line. The <INS LINE> command is done by pressing the <F2> key.
  1122. Now type the following: 
  1123.  
  1124.     If you will send payment to us, we will ship your software out  to
  1125. you  as  soon as possible. Hopefully, the impending post office strike
  1126. will not delay the deliver too much. <CR> <CR> 
  1127.  
  1128.  
  1129. DELETING A SENTENCE
  1130.  
  1131.      Let's assume that you don't care very much for that last sentence
  1132. you just typed. Position yourself over the "H" in the word "Hopefully"
  1133. and press the <SEARCH & MARK> command (the <ALT> F7 key). On the  bot-
  1134. tom  of  the  screen, you will see a message saying "type character to
  1135. find". Press the '.' key. This tells the word processor that you  want
  1136. to  do  something  to  all  characters  from the "H" up until the next
  1137. period. The sentence will be highlighted, and a message on the  bottom
  1138. will say 
  1139.  
  1140.   d(el),p(ick & clear),a(ppend),c(copy),C(ase),w(rite),:D(forget)
  1141.  
  1142.   Press 'd'
  1143.  
  1144.      You  will  see  the  sentence  disappear.  You just told the word
  1145. processor to delete the sentence. 
  1146.  
  1147.      The <SEARCH & MARK> command is one of the ways of marking a block
  1148. of text for a certain operation. Typical operations on a block of text
  1149. including deleting it, copying it to another location, and  moving  it
  1150. to  another  location. Block commands will be discussed further in the
  1151. chapter on blocks. 
  1152.  
  1153.  
  1154. DELETING A LINE
  1155.  
  1156.      The  <DEL LINE> command (the <F1> key) is used to delete the line
  1157. of text that the cursor is on. This could contain  a  whole  sentence,
  1158. part  of a sentence, a blank line, or a row of numbers. When you press
  1159. the <DEL LINE> key, the line will disappear and  the  lines  under  it
  1160. will  move  up  to  fill the empty space. This command can also take a
  1161. number before it, which indicates how many lines  to  delete  starting
  1162. from the current line. For instance, if you typed 
  1163.  
  1164.   <ESC> 3 <DEL LINE>
  1165.  
  1166. then three lines would be deleted.  
  1167.  
  1168.  
  1169. EXAMPLE
  1170.  
  1171.      If the cursor is on the line of 'y's,
  1172.  
  1173.   press <DEL LINE>
  1174.  
  1175.         before                        after
  1176.   _______________________      _______________________
  1177.   | xxxxxxxxxxxxxxxxxxx |      | xxxxxxxxxxxxxxxxxxx |
  1178.   | yyyyyyyyyyyyyyyyyyy |      | zzzzzzzzzzzzzzzzzzz |
  1179.   | zzzzzzzzzzzzzzzzzzz |      | aaaaaaaaaaaaaaaaaaa |
  1180.   | aaaaaaaaaaaaaaaaaaa |      | bbbbbbbbbbbbbbbbbbb |
  1181.   |_____________________|      |_____________________|
  1182.  
  1183.  
  1184.  
  1185.  
  1186. UNDOING A DELETE
  1187.  
  1188.      If you mistakenly deleted a line or a block of text, you can  re-
  1189. cover  it  by  using  the <UNDO> command (the <ALT> U key). If you un-
  1190. delete a line or a block of text, you are given a  choice  to  insert,
  1191. overlay  or  push  the  undeleted  line. Respond with 'i' to insert it
  1192. before the line where the cursor is. These three options  are  further
  1193. discussed in the chapter dealing with block operations and the chapter
  1194. dealing with column operations. 
  1195.  
  1196.  
  1197.  
  1198.                                SUMMARY
  1199.  
  1200.  
  1201.   <INS>             toggles between insert and overstrike mode.
  1202.  
  1203.   <DEL>             deletes the character under the cursor.  
  1204.  
  1205.   <BACKSPACE>       deletes the character to the left of the 
  1206.                     cursor. If the cursor is at the left margin, the 
  1207.                     current line is joined to the previous line.  
  1208.  
  1209.   <DEL WORD>        deletes the word underneath the cursor.
  1210.   <SH> <DEL>
  1211.  
  1212.   <DELEOL>          deletes to the end of the current line
  1213.   <SH> NUMERIC 5
  1214.  
  1215.   <INS LINE>        opens up a blank line above the line where the
  1216.   <F2>              cursor is.  
  1217.  
  1218.   <DEL LINE>        deletes the lines where the cursor is.  You can also
  1219.   <F1>              delete the next n lines by <ESC> n <DEL LINE>, where
  1220.                     'n' is the number of lines to delete.  
  1221.  
  1222.   <UNDO>            undeletes the last line or last block deleted
  1223.   <ALT> U  
  1224.  
  1225.   <SEARCH & MARK>   highlights an area for a specific command.  Typing
  1226.   <ALT> <F7>        'd' will delete the marked area.  
  1227.                       WORKING WITH PARAGRAPHS
  1228.           
  1229.           
  1230. REFORMATTING A PARAGRAPH
  1231.           
  1232.     You  can't  help  editing  a  document without adding and deleting
  1233. characters. When you do this, you will  see  the  paragraph  lose  its
  1234. "shape".  A  paragraph  can  always  be  "re-beautified"  by using the
  1235. <REFORMAT> command (the <ALT> K key). All lines from the current  line
  1236. (the  line where the cursor is) until the end of the paragraph will be
  1237. reformatted to fit between the margins, and justified if necessary. 
  1238.           
  1239.     When  you change the margins of a paragraph or the document,   you
  1240. want the paragraph to fit nicely between the new margins. To do  this,
  1241. you  must  position the cursor at the first line  of the paragraph  to
  1242. reformat and press <REFORMAT>. 
  1243.           
  1244. EXAMPLE
  1245.           
  1246.     Let's say that a paragraph is justified,  with a left margin of  1
  1247. and a right margin of 30. 
  1248.           
  1249.             __________________________________
  1250.             | xxxxx xxxx xxxxxx xxxx xx xxxx |
  1251.             | xx xxxx xxxxx xx x xxxxx xxx x |
  1252.             | xxxxxx xxxx xxx xxx x xxx x.   |
  1253.             |________________________________|
  1254.           
  1255.           
  1256.     If you added and deleted several characters  from  the  first  and
  1257. second sentences, the paragraph might look like this: 
  1258.           
  1259.             __________________________________
  1260.             | xxxxx xxxx xxxxxx xxxx xxxx    |
  1261.             | xx xxxx xxxxx xx x xxx x       |
  1262.             | xxxxxx xxxx xxx xxx x xxx x.   |
  1263.             |________________________________|
  1264.           
  1265.     To  reformat  the  paragraph,  position  the  cursor  at the first
  1266. character of the paragraph and press <REFORMAT>.  The  paragraph  will
  1267. look something like this 
  1268.  
  1269.             __________________________________
  1270.             | xxxxx xxxx xxxxxx xxxx xxxx xx |
  1271.             | xxxx xxxxx xx x xxx  x  xxxxxx |
  1272.             | xxxx xxx xxx x xxx x.          |
  1273.             |________________________________|
  1274.           
  1275.  
  1276.     If  we  change the right to 20,  we would want to have  the   text
  1277. reformatted  to  lie withing the new margins.  Again,  move the cursor
  1278. to the  first  line  of  the  paragraph  and  press  <REFORMAT>.   The
  1279. paragraph will look like this: 
  1280.           
  1281.             _________________________
  1282.             | xxxxx    xxxx  xxxxxx |
  1283.             | xxxx   xxxx  xx  xxxx |
  1284.             | xxxxx   xx  x  xxx  x |
  1285.             | xxxxxx xxxx xxx   xxx |
  1286.             | x xxx x.              |
  1287.             |_______________________|
  1288.           
  1289.           
  1290. JOINING TWO LINES
  1291.           
  1292.     By  putting  the  cursor on the left margin of a line and pressing
  1293. the <BACKSPACE> key, the line on which the cursor is located is joined
  1294. with the previous line to form one bigger line. For example, there are
  1295. two lines in the file which look like this: 
  1296.           
  1297.          Hello, how are you today?
  1298.          I am doing very well.  
  1299.                 -
  1300.           
  1301. and the cursor is on the second line under the 'i' of "doing".  If you 
  1302. want to join the two lines, 
  1303.           
  1304.     Press <HOME>
  1305.           
  1306. and the cursor will move to the first character of the line.  
  1307.           
  1308.          Hello, how are you today?
  1309.          I am doing very well.  
  1310.          -
  1311.           
  1312.     Now, press <BACKSPACE>, and the result will be this:
  1313.           
  1314.          Hello, how are you today?I am doing very well.  
  1315.                                   - 
  1316.           
  1317.     Sometimes  you may want to join a line with the line UNDER it. The
  1318. way to do this is to go to the end of  the  current  line  (press  the
  1319. <END>  key),  then  press  the <DEL> key. You will see the line joined
  1320. with the next line. Taking the example from above, let's say the  cur-
  1321. sor was positioned on the first line like so: 
  1322.           
  1323.          Hello, how are you today?
  1324.                  -
  1325.          I am doing very well.  
  1326.  
  1327.  
  1328.     To  position  the cursor at the end of the line, and then join the
  1329. line :
  1330.           
  1331. ==>     Press the <END> key, then
  1332. ==>     Press the <DEL> key
  1333.           
  1334.     If  you  have  a  blank line where the only character on it is the
  1335. carriage return, it can be deleted by the method described above.  You
  1336. may find this way more convenient than using the <DEL LINE> command to
  1337. delete the line. This method can also be used to join two paragraphs. 
  1338.           
  1339.     Let's say that you have two paragraphs which look like this:
  1340.  
  1341.             ____________________________
  1342.             |    xxxx xxxx xxxxx xxxxx |
  1343.             |  xxxx xxxxx xxx xxx xxxx |
  1344.             |  xxxxxxx.                |
  1345.             |                          |
  1346.             |    yyyyyyy yyy y yyy yyy |
  1347.             |  yyy y y yyyyy yy yyy yy |
  1348.             |  yyyyyy yyy yyyy.        |
  1349.             |__________________________|
  1350.  
  1351.           
  1352.     To join these two paragraphs, first position  the  cursor  at  the
  1353. first  word  of  the  second paragraph. Then press the <BACKSPACE> key
  1354. several times until the first line of the second paragraph  is  joined
  1355. to  the last line of the first paragraph. The screen should look some-
  1356. thing like this: 
  1357.           
  1358.             __________________________________
  1359.             |    xxxx xxxx xxxxx xxxxx       |
  1360.             |  xxxx xxxxx xxx xxx xxxx       |
  1361.             |  xxxxxxx.yyyyyyy yyy y yyy yyy |
  1362.             |  yyy y y yyyyy yy yyy yy       |
  1363.             |  yyyyyy yyy yyyy.              |
  1364.             |________________________________|
  1365.  
  1366.           
  1367.     The two paragraphs have been joined to make one larger  paragraph.
  1368. But  as  you can see, the new paragraph is no longer justified. If you
  1369. press the <REFORMAT> key, the rest of the  paragraph  will  be  refor-
  1370. matted to fit within the margins, and will be  rejustified  if  neces-
  1371. sary. 
  1372.           
  1373.  
  1374.  
  1375. SPLITTING A LINE
  1376.           
  1377.     Let's  say  that you have one big paragraph that you would like to
  1378. split into two smaller paragraphs. Position yourself under  the  first
  1379. character of the sentence that is to start the new paragraph and press
  1380. the  <CR>  key.  You  will see the right side of that line move to the
  1381. next line. Now use the <REFORMAT> command to fix up the new paragraph.
  1382. But before you do, you have to  remember  that  our  definition  of  a
  1383. paragraph is a line with a blank line before it, or a line that starts
  1384. with  a paragraph indent. Use one of the methods you learned before to
  1385. make the newly split lines a paragraph. 
  1386.           
  1387.     As an example, if you have a big paragraph which looks like this:
  1388.           
  1389.              ____________________________
  1390.              |   xxxx xxxx xxxxx xxxxx  |
  1391.              | xxxx xxxxx xxx xxx xxxx  |
  1392.              | xxxxxxx. yyyy yyy yyy y  |
  1393.              | y yyyyyyy yyy y yyy yyy  |
  1394.              | yyy y y yyyyy yy yyy yy  |
  1395.              | yyyyyy yyy yyyy.         |
  1396.              |__________________________|
  1397.           
  1398.           
  1399. and  you wanted to split the paragraph into two smaller ones  starting 
  1400. at the 'y's, 
  1401.           
  1402. ==>     Position the cursor at the first 'y'.  
  1403. ==>     Type <CR> twice
  1404.           
  1405. The screen will look like this:
  1406.           
  1407.              ___________________________
  1408.              |   xxxx xxxx xxxxx xxxxx |
  1409.              | xxxx xxxxx xxx xxx xxxx |
  1410.              | xxxxxxx.                |
  1411.              |                         |
  1412.              | yyyy yyy yyy y          |
  1413.              | y yyyyyyy yyy y yyy yyy |
  1414.              | yyy y y yyyyy yy yyy yy |
  1415.              | yyyyyy yyy yyyy.        |
  1416.              |_________________________|
  1417.           
  1418.           
  1419.     Now use the <REFORMAT>  command  to  reformat  the  newly  created
  1420. second  paragraph  so  that  it  will be justified again. Before doing
  1421. this, you might want to put a paragraph tab before the first character
  1422. of the new  paragraph  (if  it  should  be  indented  like  the  other
  1423. paragraphs).  To  do this, place the cursor anywhere on the first line
  1424. of the new paragraph, and press <PARA INDENT> (the <ESC> TAB key). 
  1425.           
  1426.  
  1427. JUSTIFICATION
  1428.           
  1429.     Justification is the process of inserting spaces between the words
  1430. so that the last character of each line falls on the right margin. All
  1431. of the paragraphs in this manual are right justified.
  1432.           
  1433.     You can enable justification from the format menu under the option
  1434. that says "justification". Type "Y" to turn it on or "N"  to  turn  it
  1435. off.  Now every time you type a line and you go over the right margin,
  1436. the line will be justified. When you reformat  a  paragraph  with  the
  1437. method discussed above, and justification is on, the paragraph will be
  1438. rejustified to fit exactly between the margins. 
  1439.           
  1440.           
  1441. HYPHENATION
  1442.           
  1443.     When you reformat a paragraph, there are two ways to have hyphena-
  1444. tion performed. First, if you want hyphenation to be performed at all,
  1445. go to the options menu and type "hy y". This will  enable  hyphenation
  1446. when you reformat a paragraph. If the  "hy"  parameter  is  OFF,  then
  1447. no hyphenation will be attempted.
  1448.  
  1449.     The two methods of hyphenation are "manual"  and  "automatic".  In
  1450. the  options  menu,  you will see an option for automatic hyphenation.
  1451. This option is the "ah"  paramter.  If  this  option  is  OFF,  manual
  1452. hyphenation is performed. 
  1453.           
  1454.     With automatic hyphenation, the word processor will analyze a word
  1455. and insert a hyphen automatically in the word where it detects the end
  1456. of  a  syllable.  This is a very sophisticated algorithm which doesn't
  1457. use a dictionary. (Thanks to Donald Knuth and James Gimpel  for  their
  1458. algorithms).  There's  a small chance that the word will be hyphenated
  1459. in the wrong place. In that rare case, you can put the cursor over the
  1460. first character in the word, split the line, and reformat. A testimony
  1461. to the accuracy of this algorithm is  this  user's  manual.  Automatic
  1462. hyphenation  was  used  whenever  paragraphs  were reformatted, and we
  1463. never had to change the hyphenation of a word! 
  1464.           
  1465.     With manual hyphenation, you are given a choice where you want the
  1466. word hyphenated. When you reformat a paragraph, and the word processor
  1467. finds a word that could possibly be hyphenated, the word  will  appear
  1468. on  the  bottom of the screen with the cursor under the last character
  1469. where a hyphen can go. You can use your left and right arrow  keys  to
  1470. move the cursor to the place where you would like a hyphen. Then press
  1471. '-'  to  put  a hyphen at that point. You are not allowed to move past
  1472. the last hyphenation point in the word. If you  don't  want  the  word
  1473. hyphenated at all, just press <CR>. 
  1474.           
  1475.     As  an example,  let's say that  a  line  can't  fit  between  the
  1476. margins, and the end of the line looks like this: 
  1477.           
  1478.                ..........  the disappearence
  1479.                                          |_______ right margin
  1480.           
  1481.  
  1482.  
  1483.     If the line was part of a paragraph  that  was  reformatted,  when
  1484. NYWord  tries  to  adjust  this  line,  it  will  find  that  the word
  1485. "disappearence" is too long to fit on the line. As illustrated  above,
  1486. the  line  has  two  characters  too  many.  If manual hyphenation was
  1487. chosen, then the word "disappearence" will appear on the  status  line
  1488. with  the cursor under the 'n'. This means that the rightmost position
  1489. where a hyphen can be inserted is between the 'e' and  the  'n'.  Move
  1490. the  cursor to the second letter 'e' and press '-'. The paragraph will
  1491. now look like this: 
  1492.           
  1493.               ...........   the disappear-
  1494.                ence .....................
  1495.           
  1496.     The  advantage  of automatic hyphenation is that you don't need to
  1497. take the time to hyphenate a word when  a  paragraph  is  reformatted.
  1498. Automatic hyphenation is also fairly fast. Manual hyphenation might be
  1499. time consuming if you have  long  paragraphs  or  many  paragraphs  to
  1500. reformat.  However, manual hyphenation gives you more control over the
  1501. point where a word will be hyphenated. 
  1502.           
  1503.     With both methods, a "soft hyphen" is inserted into  the  word.  A
  1504. soft  hyphen  will  print  out  on the paper as a '-', but if you make
  1505. changes to that paragraph, and then you reformat that paragraph again,
  1506. the soft hyphen might disappear. You can insert a "hard" hyphen into a
  1507. word yourself by pressing '-'. This should be used when you are typing
  1508. words which are  naturally  hyphenated,  like  "mother-in-law".  These
  1509. "hard" hyphens will not be removed when a paragraph is reformatted. 
  1510.           
  1511.           
  1512. JUSTIFYING A LINE
  1513.           
  1514.     The <JUSTIFY> command (the <ALT> J  key)  will  justify  the  line
  1515. where  the  cursor  is.  Recall that justification means that the text
  1516. will be aligned on the left and right margins.  This  command  can  be
  1517. used  to  justify  a  section  of text without having to turn the jus-
  1518. tification option in the format menu. If you delete several characters
  1519. from  a justified line, and you don't want to reformat the rest of the
  1520. (justified) paragraph, you can rejustify the changed lined by pressing
  1521. <JUSTIFY>. 
  1522.           
  1523.     This  command will also take a number before it, so typing <ESC> 5
  1524. <JUSTIFY> will justify the next five lines. 
  1525.           
  1526.  
  1527.  
  1528. REMOVING JUSTIFICATION FROM A LINE
  1529.           
  1530.     The <SQUASH> command (the <CTRL> Q key) is used to remove multiple
  1531. blanks  from between words in a line. It also can take a number before
  1532. it like the <JUSTIFY> command. The only reason that you might want  to
  1533. use  this  command is to remove the justification from a line. For in-
  1534. stance, the line where the cursor is looks like this: 
  1535.           
  1536.        How are you today?  I  think that  I'm doing  very  well.
  1537.           
  1538.     By pressing the <SQUASH> key, the line will be transformed to
  1539.  
  1540.        How are you today? I think that I'm doing very well.  
  1541.           
  1542.     All adjacent blanks are removed. However, if you had any  tabs  in
  1543. the line, they would not be removed (unless you chose to have the tabs
  1544. expanded  into blanks). So, if a line begins with a paragraph tab, and
  1545. you squashed the line, the paragraph tab would remain  intact  in  the
  1546. line. 
  1547.           
  1548.  
  1549.  
  1550.                                SUMMARY
  1551.           
  1552.           
  1553.    <REFORMAT>     adjusts the lines from the current line until the end of
  1554.    <ALT> K        paragraph.  Each line will fit within the left and right
  1555.                   margins and justified if the justification option is on.  
  1556.           
  1557.    <JUSTIFY>      justifies the line which the cursor is on.
  1558.    <ALT> J
  1559.           
  1560.    <SQUASH>       removes adjacent blanks from the line which the cursor is
  1561.    <CTRL> Q       on. 
  1562.                          
  1563.    Both the <JUSTIFY> and  <SQUASH>  commands  can  take  a  numerical
  1564. prefix.
  1565.  
  1566.    Hyphenation variables in the options menu :
  1567.    
  1568.    hyphenation on (hy)   YES if hyphenation should be performed when
  1569.                          reformatting a paragraph
  1570.    
  1571.    automatic hyph (ah)   YES if automatic hyphenation enabled, NO if
  1572.                          you want to hyphenate manually
  1573.    
  1574.    hot zone (hz)         minimum number of characters in the left 
  1575.                          part of a hyphenated word
  1576.                           THE FORMAT MENU
  1577.  
  1578. FORMAT PARAMETERS
  1579.  
  1580.      Formatting information which affects the way your lines and pages
  1581. look is kept in a table called a "format block".  Each  line  in  your
  1582. file is "associated" with a format block. All lines in the file can be
  1583. associated  with one format block, or each line can be associated with
  1584. its own format block. The usual case is that all  lines  will  be  as-
  1585. sociated with format block 0. The format block which is used by NYWord
  1586. to  determine  the  format  of  a  line  is called the "CURRENT format
  1587. block". The margins, tabs, spacing, and associated parameters  of  the
  1588. CURRENT  format block is used to determine the number of characters in
  1589. a line, the amount of space between two lines, etc. 
  1590.  
  1591.      Each  new  file that you edit is automatically "born" with format
  1592. block 0. The block and its default settings is shown below. To  change
  1593. any of the parameters in format block 0, use the <FORMAT MENU> command
  1594. (the <ALT> F key). You will see the following menu :
  1595.  
  1596.          __________________________________________
  1597.          |    Type n to create a new format       |
  1598.          |                                        |
  1599.          |    Type o to copy an old format        |
  1600.          |                                        |
  1601.          |    Type c to change an old format      |
  1602.          |                                        |
  1603.          |    Type <CTRL>D to return to document  |
  1604.          |________________________________________|
  1605.  
  1606.  
  1607.      Type  'c'  and  then  you  will see format block 0 come up on the
  1608. screen. 
  1609.  
  1610.      Here is what format block 0 looks like, with the default values: 
  1611.  
  1612. ┌───────────────────────────────────────────────────────────────────┐
  1613. │FORMAT BLOCK 0                                                     │
  1614. │left margin     1                                                  │
  1615. │right margin    65                                                 │
  1616. │top margin      10                                                 │
  1617. │bottom margin   56                                                 │
  1618. │spacing         1                                                  │
  1619. │justification   Y                                                  │
  1620. │wordwrap        Y                                                  │
  1621. │page length     66                                                 │
  1622. │header position 3                                                  │
  1623. │footer position 0                                                  │
  1624. │headers & footers - (press <SPACE BAR>)                            │
  1625. │                                                                   │
  1626. │L---+---T1----+-T--2----T----3--T-+----4T---+---T5----+-T--6----R--│
  1627. │                                                                   │
  1628. │                   The last format is 0                            │
  1629. │Type Y to choose, N for next, ESC to return, <n> for format #n     │
  1630. └───────────────────────────────────────────────────────────────────┘
  1631.  
  1632.      If  you see a format block that you want to change, type 'Y'. You
  1633. can view the next format block (if there is one)  by  typing  'N'  for
  1634. Next.  If there are many format blocks, you can type the number of the
  1635. block you want to see, followed by a <CR>. You  can  type  <CTRL>D  or
  1636. <ESC> at any time to return to the document. 
  1637.  
  1638.      Type  'Y'  to  tell  NYWord  that  you want to change this format
  1639. block. You can now use your <UP ARROW> and <DOWN ARROW> keys  to  move
  1640. along  the menu. When you come to a parameter that you want to change,
  1641. type the new value in. If you want to change a numeric value, such  as
  1642. a  margin  setting, type the new value followed by a <CR>. If you want
  1643. to change a yes/no parameter like wordwrap,  type  a  'Y'  or  an  'N'
  1644. without a <CR>. If you want to type in a header or a footer, just type
  1645. the text. 
  1646.  
  1647. Exercise: Position the cursor at the left margin  parameter  and  type
  1648. '5'  followed by a <CR>. You will see the left margin indicator on the
  1649. ruler that's at the bottom of the  screen  move  to  position  5.  Now
  1650. change the right margin to 60. You will see the right margin indicator
  1651. move. 
  1652.  
  1653.  
  1654. USING THE RULER LINE TO CHANGE TABS & MARGINS
  1655.  
  1656.      The ruler line is the last line you  see  on  the  format  block.
  1657. Every  ten columns are marked with a digit, and every five columns are
  1658. marked with a plus sign. The letter 'L' shows you where the left  mar-
  1659. gin  is set, and the letter 'R' is where the right margin is set. Each
  1660. tab  stop  is marked with the letter 'T', and each decimal tab stop is
  1661. marked with the letter 'D'.
  1662.  
  1663.      To change a setting on it, use the <DOWN ARROW> key  to  move  to
  1664. the  ruler.  Once  you  are  on the ruler line, you can use your <LEFT
  1665. ARROW> and <RIGHT ARROW> keys to move across the ruler.  You  can  use
  1666. the  <TAB> key to move rightwards by one tab stop, and the <CTRL><LEFT
  1667. ARROW> sequence to move back one tab stop. Move the cursor to position
  1668. 3  on  the ruler and type 'L' (letter L). You will see the left margin
  1669. indicator move to column 3 if you look at the left margin parameter at
  1670. the top of the screen, you see that it has also changed  to  '3'.  Any
  1671. change  that  you  make  in  the margins will be reflected both on the
  1672. ruler and in the numerical parameter. 
  1673.  
  1674.      You can add a regular tab stop by typing a 'T' when the cursor is
  1675. positioned over the column where you want the tab stop. You can put in
  1676. a  decimal  tab  stop  by  typing 'D'. You can clear a tab stop by po-
  1677. sitioning the cursor over the tab  stop  to  clear  and  pressing  the
  1678. <DEL> key. You can also clear ALL tab stops by pressing <BACKSPACE>. 
  1679.  
  1680.      The  default  tabs  stops  are  every  eight columns, starting at
  1681. column 1. As an exercise, change the tabs stops to every five columns.
  1682. To move the cursor upwards to another  parameter,  type  a  <CR>,  <UP
  1683. ARROW>, <CTRL>D, or <ESC>.
  1684.  
  1685.      To  return  to  the document, press <CTRL>D. The changes that you
  1686. made will be recorded in that format block. 
  1687.  
  1688.  
  1689. REFORMATTING THE CHANGED LINES
  1690.  
  1691.      If you changed the left margin, then  all  lines  which  are  as-
  1692. sociated  with that format block will have their left margins changed.
  1693. This will be shown when the  lines  are  redisplayed  on  the  screen.
  1694. However,  if  you changed the right margin, then you must reformat the
  1695. lines  if  you  want  by  pressing <REFORMAT> (the ALT K key). See the
  1696. chapter  on  paragraphs  for  more  information  on  the  reformatting
  1697. operation. 
  1698.  
  1699.      Let's say that you have been typing some paragraphs with the mar-
  1700. gins  set  at  1  and  75, and you decide that the next two paragraphs
  1701. should have margins 10 and 50. Press <FORMAT MENU> and type 'n' for  a
  1702. new  format  block.  You will see format block 1 appear on the screen;
  1703. the values of the parameters are the same as format block 0.  Whenever
  1704. you  request  a  new  format block, it takes on the same values as the
  1705. format block that's associated with the line that the  cursor  is  on.
  1706. For  instance,  if  you  have  5  different  format blocks (numbered 0
  1707. through 4) and if the line where the cursor is on is  associated  with
  1708. format  block  2,  then  when  you ask for a new format block, the new
  1709. block will be numbered 5 and will have the same values as format block
  1710. 2. 
  1711.  
  1712.      Continuing with the example above, change the margins of the  new
  1713. format  block 1 to be 10 and 50. Now type the next two paragraphs with
  1714. the new margins. After these two paragraphs are  finished,  you  would
  1715. like  to  have  the  rest of the paragraphs conform to format block 0.
  1716. Press <FORMAT MENU> and press 'c'. We aren't going  to  change  format
  1717. block 0, but we would like the rest of the lines to be associated with
  1718. it.  Type 'y' to choose format block 0, then type <CTRL>D to return to
  1719. your document. Even though we haven't altered format block 0, we  have
  1720. made  it  the  "current  format",  in other words, the format that all
  1721. subsequent lines will be associated with. 
  1722.  
  1723.      To find out which format block a line is associated with, look at
  1724. the status line. In the middle of the status line, there is a  section
  1725. which  says "fmt:#", where '#' is some number. That number is the num-
  1726. ber of the format block associated with the line where the cursor is. 
  1727.  
  1728.  
  1729. CREATING NEW AND COPYING OLD FORMAT BLOCKS
  1730.  
  1731.      When you use the <FORMAT MENU> command, you have  the  option  of
  1732. either  creating  a  new format block, or copying an old format block.
  1733. When you create a new format, the initial value of the  parameters  in
  1734. the  new  format  block  will be that of the CURRENT format block. The
  1735. reason for this is that for the most part, the format  of  lines  will
  1736. resemble the format of the lines surrounding them. 
  1737.  
  1738.      If you have many format blocks, you might want to set the CURRENT
  1739. format  to be one of those blocks. To do this, type 'o' in response to
  1740. the prompt. When the current format block is shown on the screen,  use
  1741. the  methods  discussed  above  to  display the format block which you
  1742. would like to become the CURRENT format. When the proper format  block
  1743. is shown, just type 'y' to choose that format block. You will returned
  1744. to the document, and you can now continue editing it. The format block
  1745. that you chose will be used to determine how the lines are formatted. 
  1746.  
  1747.  
  1748. CHANGING JUST THE TABS & MARGINS
  1749.  
  1750.      You  don't  need  to access the entire format menu if you want to
  1751. make changes to just the margins or tabs. The <CHANGE MARGINS> command
  1752. (the  <ALT>  Y key) is used to make changes to the margins and tabs of
  1753. either the CURRENT format block, or a new format block. 
  1754.  
  1755.      When you press the <CHANGE MARGINS> key, a message will appear on
  1756. the status line which says: 
  1757.  
  1758.   type c to change current format, n to create new format
  1759.  
  1760.      If  you  type  a  'c',  then the ruler line of the current format
  1761. block will be shown on the status line. If you type 'n',  then  a  new
  1762. format  block  will  be created, and its ruler line will be shown. You
  1763. can now use the commands that were discussed above to change the  left
  1764. or  right  margins, or the tab stops. When you are finished, type <CR>
  1765. or <CTRL>D to resume editing the document. The new settings will  take
  1766. effect. 
  1767.  
  1768.      This  command  is easier to use than the <FORMAT MENU> command if
  1769. you want to change only the margins or tabs. However, you must use the
  1770. <FORMAT MENU> command to change any of the  other  parameters  in  the
  1771. format  block, such as headers & footers. The <CHANGE MARGINS> command
  1772. is also useful in making temporary changes to the margins. This is di-
  1773. scussed below. 
  1774.  
  1775.  
  1776. A WORD ABOUT LEFT MARGINS
  1777.  
  1778.      Most of the margin changes that you make will  be  to  the  right
  1779. margin.  Varying just the right margin will vary the number of charac-
  1780. ters that will be allowed on a line. So, if you need  to  type  a  few
  1781. lines which are longer than the current right margin, you can create a
  1782. new  format  block and set the right margin to the higher value. After
  1783. typing the long lines, change back to the old format block. 
  1784.  
  1785.      If you don't think that you will  ever  be  changing  these  long
  1786. lines, then it's easier to just change the right margin of the current
  1787. format  block.  After typing these lines, just change the right margin
  1788. back to its original value. 
  1789.  
  1790.      As an example, this chapter was written with the left margin  set
  1791. at  1 and the right margin set at 65. But if you look at the illustra-
  1792. tion of format block #0 above, you see that the  ruler  line  and  the
  1793. line  under  it  are longer than 65 characters. To type those lines, I
  1794. followed the following procedure: 
  1795.  
  1796. ==>     Press <CHANGE MARGINS>
  1797.  
  1798. ==>     type 'c' to change the current format
  1799.  
  1800. ==>     use the <TAB> and <RIGHT ARROW> keys to position the cursor at
  1801. column 85 
  1802.  
  1803. ==>     press 'r' to set the new right margin at 85
  1804.  
  1805. ==>     press <CR> to return to the document
  1806.  
  1807. ==>     type the two long lines
  1808.  
  1809.   follow the above steps to change the right margin back to 65
  1810.  
  1811.  
  1812. CHANGING FORMATS
  1813.  
  1814.      You  can change the format block number associated with an exist-
  1815. ing line or a group of lines. To do this, you  must  use  the  marking
  1816. procedure  discussed  in  the  chapter on block commands. Mark off the
  1817. line or number of lines (usually a paragraph) that you want to  change
  1818. by  using  the  <MARK>  key or the <SEARCH&MARK> command. When you are
  1819. prompted for the block command that you would like to do, type 'f'. 
  1820.  
  1821.      The 'f' stands for "format". You will be shown the  format  menu,
  1822. as  if  you  were doing a <FORMAT MENU> command. Choose the particular
  1823. format block that you want, then type <CTRL>D to exit the format menu.
  1824. Whatever format block you chose will  now  be  the  format  block  as-
  1825. sociated with the marked lines. 
  1826.  
  1827.  
  1828. CHANGING FORMAT BLOCK 0 PERMANENTLY
  1829.  
  1830.     NYWord comes with a  file  called  WPFORMAT.  This  file  has  the
  1831. default  settings  of  format  block 0. When NYWord starts up, it will
  1832. search your current directory and then the  directories  in  your  DOS
  1833. PATH  for  the WPFORMAT file. If it is found, then the values found in
  1834. the file are used for format block 0.
  1835.  
  1836. *** If you modify this file, then YOU MUST SAVE IT IN ASCII!!!!
  1837.  
  1838.  
  1839.                                SUMMARY
  1840.  
  1841.      <FORMAT MENU>      allows you to change the parameters of a format
  1842.      <ALT> F            block 
  1843.  
  1844.      <CHANGE MARGINS>   a quick way to change the settings of the tabs
  1845.      <ALT> Y            and the margins of the CURRENT format block
  1846.  
  1847.      commands to use when changing a ruler
  1848.  
  1849.        L     sets the left margin at the cursor position
  1850.        R     sets the right margin at the cursor position
  1851.        T     sets a regular tab stop at the cursor position
  1852.        D     sets a decimal tab stop at the cursor position
  1853.        <DEL>       clears the tab stop at the cursor position
  1854.        <BACKSPACE> clears all of the tabs stops
  1855.  
  1856.        <LEFT>   moves the cursor one position back
  1857.        <RIGHT>  advances the cursor one position
  1858.        <TAB>    advances the cursor to the next tab stop
  1859.        <CTRL> <LEFT>  cursor moves to the previous tab stop
  1860.                     MANIPULATING BLOCKS OF TEXT
  1861.  
  1862.      In the previous chapter, you learned how to put new lines of text into
  1863. your file and how to remove lines. A common operation in most word process-
  1864. ing  is  moving  or  copying  a block of text from one part of your file to
  1865. another part. This chapter will cover block operations. 
  1866.  
  1867.      Type "wp letter2", and enter the following text into the system:
  1868.  
  1869. ________________________________________________________________________________
  1870. |                                                                              |
  1871. |  October 5, 1984<CR>                                                         |
  1872. |  <CR>                                                                        |
  1873. |  Mr. Arm Strong<CR>                                                          |
  1874. |  Afima Enterpreses                                                           |
  1875. |  67 Blossom Road                                                             |
  1876. |  Cleveland, Ohio 44115                                                       |
  1877. |  <CR>                                                                        |
  1878. |  Dear Mr. Strong<CR>                                                         |
  1879. |  <CR>                                                                        |
  1880. |  Thank you for your letter of June 13 regarding the revised version of our   |
  1881. |  financial software.<CR>                                                     |
  1882. |  <CR>                                                                        |
  1883. |  Further enhancements are scheduled for approximately every six months, but  |
  1884. |  there has not been any mention at this time of allowing the data or program |
  1885. |  to be copied to a device such as you suggested.  However, there has been    |
  1886. |  interest in allowing the user to copy the data to a hard disk.<CR>          |
  1887. |  <CR>                                                                        |
  1888. |  Thank you for your comments, and if I can be of any further assistance,     |
  1889. |  please do not hesitate to contact me.<CR>                                   |
  1890. |  <CR>                                                                        |
  1891. |  Sincerely,<CR>                                                              |
  1892. |  <CR>                                                                        |
  1893. |  <CR>                                                                        |
  1894. |  Michael Baker<CR>                                                           |
  1895. |  Wall Street Software<CR>                                                    |
  1896. |______________________________________________________________________________|
  1897.  
  1898.  
  1899.  
  1900.      Position  yourself  at  the line which starts "Further enhancements.."
  1901. and press <INS LINE> (the F2 key). Now type the following paragraph: 
  1902.  
  1903.   We always appreciate hearing from our customers, and we always take your
  1904.   suggestions into consideration.  Wall Street Software strives to maintain its
  1905.   reputation as the leader in financial software, and continued customer
  1906.   satisfaction is one of our main goals.<CR>
  1907.  
  1908.  
  1909. MOVING A PARAGRAPH
  1910.  
  1911.      There are two ways of moving the paragraph that you just  typed  to  a
  1912. new location. Position yourself at the first character in that paragraph. 
  1913.  
  1914. ==>     Press the <SEARCH & MARK> command (the <ALT> F7 key)
  1915.  
  1916. You will be prompted with a message that says:
  1917.  
  1918.   type character to find
  1919.  
  1920.      At the prompt, type <CR>. You will now see the entire paragraph  high-
  1921. lighted. Whenever you respond to the <SEARCH&MARK> command with a <CR>, you
  1922. tell  the  system to consider the entire paragraph. If you had responded by
  1923. typing any other character, NYWord would search for the next  occurence  of
  1924. that  character.  If the character was found, then all text from the cursor
  1925. position to that character will be highlighted. 
  1926.  
  1927.      Now you will see a message at the bottom of the screen asking  you  to
  1928. type in the marked command. The message says: 
  1929.  
  1930.   d(el),f(ormat),p(ick&clear),a(ppend),c(opy),k(ase),w(rite)
  1931.  
  1932. ==>     Press the 'p' key to pick
  1933.  
  1934.      You  will  see the highlighted paragraph vanish. But don't worry! It's
  1935. saved somewhere. 
  1936.  
  1937.      There are ten different areas that NYWord has where you can  save  any
  1938. amount of text. These special areas are called "buffers", and they are num-
  1939. bered  from  0  to 9. Most of the time you only need one buffer. As you can
  1940. see, the pick command deletes the text that was highlighted. 
  1941.  
  1942.      Each of the ten buffers can contain any amount of text, from a  single
  1943. character  up to several pages of information. You can keep frequently used
  1944. paragraphs or sentences in a buffer, and  paste  them  into  your  document
  1945. wherever you wish. 
  1946.  
  1947.     When  you copy or cut a block of text out of your document, it's always
  1948. placed in the CURRENT PICK BUFFER. By default, the current pick  buffer  is
  1949. buffer  0.  You  can toggle between pick buffers by using the <CHG PICKBUF>
  1950. command (the <CTRL> F7 key). For  instance,  to  make  pick  buffer  2  the
  1951. current pick buffer, press <CHG PICKBUF> and press the number '2'. Any text
  1952. that you subsequently cut or copy using the block commands will be saved in
  1953. buffer 2. The contents of the other buffers are left undisturbd.
  1954.  
  1955.      Now  position  yourself  at  the line which begins "Thank you for your
  1956. comments...". 
  1957.  
  1958. ==>     Press <PUT> (the SHIFT F9 key)
  1959.      
  1960.     Now the system asks you if you want the  text  inserted,  overlayed  or
  1961. pushed 
  1962.  
  1963.   insert(i), overlay(o) or push(p) ?
  1964.  
  1965. ==>     Press 'i' or press <CR>
  1966.  
  1967. We will discuss these other options later. You will see the paragraph  that
  1968. you saved appear over this paragraph. The document will now look like this: 
  1969.  
  1970. ________________________________________________________________________________
  1971. |                                                                              |
  1972. |  However, there has been interest in allowing the user to copy the data to   |
  1973. |  a hard disk.                                                                |
  1974. |                                                                              |
  1975. |  We always appreciate hearing from our customers, and we always take your    |
  1976. |  suggestions into consideration.  Wall Street Software strives to maintain   |
  1977. |  its reputation as the leader in financial software, and continued customer  |
  1978. |  satisfaction is one of our main goals.                                      |
  1979. |                                                                              |
  1980. |  Thank you for your comments, and if I can be of any further assistance,     |
  1981. |  please do not hesitate to contact me.                                       |
  1982. |                                                                              |
  1983. |  Sincerely,                                                                  |
  1984. |______________________________________________________________________________|
  1985.  
  1986.  
  1987.      The  <PUT> command tells NYWord to take the contents of one of the ten
  1988. buffers and to place it in a certain way in your file. When you typed  "i",
  1989. you  told the <PUT> command to insert the contents of the buffer before the
  1990. line where the cursor is. 
  1991.  
  1992.      We had mentioned that there were two ways to mark a  paragraph.  Posi-
  1993. tion  yourself  at the first character of the paragraph which begins "Thank
  1994. you for your comments...". 
  1995.  
  1996. ==>     Press <MARK> (the F7 key)
  1997.  
  1998.      You will see a grey rectangle appear where the cursor is. This charac-
  1999. ter shows you where you marked a block of text from.  Now  use  the  cursor
  2000. keys  to position yourself under the word "me".
  2001.  
  2002. ==>     Press <MARK> again,
  2003.  
  2004. and  you will see the entire paragraph highlighted. Press 'p' to delete the
  2005. paragraph and save it in buffer 0.
  2006.  
  2007.      Now, try to place the  saved  paragraph  before  the  paragraph  which
  2008. starts "Further enhancements...". 
  2009.  
  2010.      NOTE:  If  you  highlighted some block of text and you decide that you
  2011. don't want to perform a block command, press <CTRL>D or <ESC> when the sys-
  2012. tem asks you for the marked command. This  will  remove  all  highlighting.
  2013. Then, you can start the marking operation over again if you want. 
  2014.  
  2015.     NOTE:  You  can remove the prompting that occurs when you use the <PUT>
  2016. command by setting the 'pu' option in the options  menu  to  'N'.  You  can
  2017. permanently modify this by altering the WPDEFAUL file.
  2018.  
  2019.  
  2020. PICKING A LINE
  2021.  
  2022.      You  can pick an entire line by using the <PICK> command. You can also
  2023. pick a specified number of lines by typing <ESC> n <PICK>, where n  is  the
  2024. number  of lines to pick. For instance, typing <ESC> 5 <PICK> will pick the
  2025. next 5 lines. The <PICK> command is done by pressing the <F8> key. 
  2026.  
  2027.      There are actually two different kinds of picking commands. The  first
  2028. kind  is  performed  when  you press 'p' in response to a block command, or
  2029. when you use the <PICK> command. This type of pick will clear out the  buf-
  2030. fer before putting the picked text into the buffer. 
  2031.  
  2032.      The 'a' option or the <PICK&APP> (SHIFT F8 key)  command  will  append
  2033. the picked text to the end of the buffer without destroying what was in the
  2034. buffer before. 
  2035.  
  2036.     Let's assume that we picked some text and placed it into buffer 2.
  2037.  
  2038.             buffer 2
  2039.       ------------------------------
  2040.       |  Hello how are you today.  |
  2041.       ------------------------------
  2042.  
  2043.      If you picked the line "I am doing OK." with the  'p'  option  or  the
  2044. <PICK> command, and you used buffer 2, the contents of buffer 2 will be: 
  2045.  
  2046.             buffer 2
  2047.       ------------------------------
  2048.       |  I am doing OK.            |
  2049.       ------------------------------
  2050.  
  2051.      Notice that the old contents of buffer 2 was wiped out.  
  2052.  
  2053.      Now if you pick the line "I hope we can meet soon." with the  'a'  op-
  2054. tion,  or  use  the  <PICK&APP> key, and you used buffer 2, the contents of
  2055. buffer 2 will be: 
  2056.  
  2057.             buffer 2
  2058.       ------------------------------
  2059.       |  I am doing OK.            |
  2060.       |  I hope we can meet soon.  |
  2061.       ------------------------------
  2062.  
  2063.  
  2064. COPYING TEXT
  2065.  
  2066.      You  saw  how the pick operation deleted the text that you marked. But
  2067. sometimes you want to mark a block of text and leave it where  it  was  and
  2068. then  place  the contents of the buffer somewhere else in the file. This is
  2069. called "copying", and you can make a copy of any block of text and put  the
  2070. copy  anywhere  else  in your file. Just mark your text using either of the
  2071. two methods discussed above, and instead of pressing the 'p' or  'a'  keys,
  2072. press  the  'c'  key.  Even though the marked text is not deleted, the copy
  2073. still exists in the buffer you put it in. 
  2074.  
  2075.      The copy command clears the buffer before doing  the  copy  operation.
  2076. There is also the <COPY> key which copies the line where the cursor is into
  2077. the  buffer.  The copy command also takes a numerical prefix, like <ESC> 20
  2078. <COPY>. 
  2079.  
  2080.      Make  a  copy  of  the  paragraph  which  starts  "Thank  you for your
  2081. letter..." and put the copy after the last paragraph. 
  2082.  
  2083.  
  2084. DELETING A BLOCK
  2085.  
  2086.      Let's say that you didn't want that copy that you just made.  We  want
  2087. to  delete the whole paragraph. You can use the <DEL LINE> key a few times,
  2088. but an easier way is to do a block operation. We had mentioned in the  last
  2089. chapter  a  way  of  deleting  a  sentence.  We can use the two methods you
  2090. learned in this chapter to mark the paragraph. Now for  your  command,  you
  2091. press the 'd' key. This will delete the block of text that was highlighted.
  2092. This  text  is  not saved. (Well...actually it is saved in buffer 9 for the
  2093. <UNDO> operation). Try deleting the extra copy of the paragraph you made. 
  2094.  
  2095.  
  2096. OTHER BLOCK OEPRATIONS
  2097.  
  2098.      The marked block can be written out to another file  by  pressing  the
  2099. 'w' key when the system asks you for the marked command. You are then asked
  2100. to  type  the name of the file to write the block out to. The block will be
  2101. written to the file you specified. You can insert the block back into  your
  2102. file at another time by using the read operation described in a later chap-
  2103. ter. 
  2104.  
  2105.      Any  time  that you have something in one of your ten buffers, you can
  2106. write the buffer to a file by pressing the <WRITE BUF> command (the <ALT> W
  2107. key). Follow the directions outlined above. You can print a block by press-
  2108. ing the <WRITE BUF> command and responding with a <CR> when you  are  asked
  2109. for  the name of the file. Remember that anytime you respond with a <CR> to
  2110. a write command, the document (or block) will be printed. 
  2111.  
  2112.      You can change the case of all letters in a marked block  of  text  to
  2113. all  upper-case  or  all lower-case. When you are asked for the marked com-
  2114. mand, type "k". The system will ask you if you want to change  the  letters
  2115. to  all upper-case charactes or all lower-case characters. Type "u" for up-
  2116. per or type "l" for lower case. 
  2117.  
  2118.  
  2119.  
  2120.                                SUMMARY
  2121.  
  2122.    <MARK>               Begins a marked block of text.  Typing  <MARK>
  2123.    F7                   again  anywhere else will highlight the text. 
  2124.  
  2125.    <SEARCH & MARK>      marks all text from the cursor position until
  2126.    <ALT> F7             the next character you type. Typing a <CR> will
  2127.                         highlight the paragraph. 
  2128.  
  2129.    <PUT>                puts the saved text from one of the buffers
  2130.    F9                   into your file.  
  2131.  
  2132.    <CHG PICKBUF>        changes the current pick buffer. Choose buffer
  2133.    <CTRL> F7            0 through 9.
  2134.  
  2135.    <CLEAR MARK>         clears the mark if there is one.
  2136.    <CTRL> F8
  2137.  
  2138. The following options can be used with marked text :
  2139.  
  2140. p       saves the marked text in one of the ten buffers. The text is
  2141.         also deleted.  The buffer is cleared before.  
  2142.  
  2143. a       the same as 'p' but the text is appended to the buffer.  
  2144.  
  2145. c       copies the marked text into a buffer. The marked text is not
  2146.         deleted.
  2147.  
  2148. d       deletes the marked text.  
  2149.  
  2150. k       changes the marked text to all upper or lower case letters.  
  2151.  
  2152. w       writes the marked text out to the named file.
  2153.